package com.jiecao.news.jiecaonews.util.constants;

import java.io.File;


public final class Constants {
	public static final String STOR_VERSION = "stor_version";// 保存当前版本，用于更新后进入引导页
	public static final String FLUSH_TIME  = "flush_time";//用于存储强制刷新时间
	public static final String PREFS_NAME = "prefs_name";
	public static final String CONNECT_STATE = "spn_connect_state";
	public static final String FIRST_START = "first_start";
	
	public static final String DB_NAME = "jiecao_news.db";// 数据库
	public static final int DB_VERSION = 2;// 数据库版本
	
	public static final String UPDATE_APKNAME = "apk/cy-apkclient.apk";// 更新的软件名称
	
	public static final String ARTICLE_START = "http://news.jiecao.fm/client/article/detail.htm";
	public static final String UPDATE_SERVER = "http://news.jiecao.fm/";
	public static final String UPDATE_INFO_URL  = "http://news.jiecao.fm/client/update/getAndroidUpdateInfo.htm?";
	public static final String ARTICLE_LIST_PRE = "http://news.jiecao.fm/client/article/list.pb";
	public static final String HEAD_ARTICLE_URL = "http://news.jiecao.fm/client/article/head.pb";
	public static final String LOCAL_PIC_URL_HEAD = "http://news.jiecao.fm";
	public static final String NEED_FLUSH_URL = "http://news.jiecao.fm/client/cache/need_flush.do";
	public static final String SHARE_FEED_BACK_URL = "http://news.jiecao.fm/client/stat/share.do";//分享信息收集
	
	public static final int STORED_NEWS_NUM = 20;//只保存20条以内的新闻
	public static final int LIST_PAGE_SIZE = 20;//列表页每次加载数量
	public static final String NEWS_LIST_IS_AFTER = "true";
	public static final String NEWS_LIST_NOT_AFTER = "false";
//	cache 目录
	public static final String LIST_IMAGE_CACHDIR = "com.jiecao.news"+File.separator+"listImageCache";
	public static final String WEB_IMAGE_CACHDIR = "com.jiecao.news"+File.separator+"webImageCache";

	public static final int TIME_DIFF = 2 * 1000;
	
	//关于页面的一些链接id
	public static final long ABOUT_INFO = 21;
	public static final long ABOUT_JOB = 22;
	public static final long ABOUT_FOLLOW = 142;
	
	//分享的几个平台：
	public static final String WXCIRCLE = "WechatTimeline";
	public static final String WX = "WechatSession";
	public static final String SINA = "Sina";
	public static final String JPUSH_TAG_ALL = "all";
	
	public static final Integer PULL_SERVICE_REQUESTCODE = 4711;
	public static final long PULL_SERVER_REPEAT_TIME = 7200000;//2小时

	

	
}
